package myky.com.doctorapp.model

import io.reactivex.Observable
import myky.com.doctorapp.api.ApiManager
import myky.com.doctorapp.base.BaseEntity
import myky.com.doctorapp.contract.HealthRecordActivityContract
import myky.com.doctorapp.entity.HealthRecordEntity

/**
 * Description:
 *
 * @author wuyangwuyang
 * Created by 2019/3/13 on 17:55
 */
class HealthRecordActivityModel : HealthRecordActivityContract.Model {
    override fun healthContact(): Observable<BaseEntity<HealthRecordEntity.PerProfileBean>> {
        return ApiManager.getApistore().healthContacts()
    }

    override fun healthOperation(): Observable<BaseEntity<HealthRecordEntity.PerProfileBean>> {
        return ApiManager.getApistore().healthOperation()
    }

    override fun findHealthRecord(): Observable<BaseEntity<HealthRecordEntity>> {
        return ApiManager.getApistore().findHealthRecord()
    }

}
